//
//  MoreBtnTableViewCell.m
//  Youhuiju
//
//  Created by 余尚飞 on 16/8/2.
//  Copyright © 2016年 yutenys. All rights reserved.
//

#import "MoreBtnTableViewCell.h"

@interface MoreBtnTableViewCell ()
@property (weak, nonatomic) IBOutlet UIButton *moreBtn;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *moreBtnWidth;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *moreBtnHeight;

@end

@implementation MoreBtnTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    _moreBtnWidth.constant = 200 * FitW;
    _moreBtnHeight.constant = 42 * FitH;
    
//    self.moreBtn.layer.cornerRadius = 6 * FitH;
//    self.moreBtn.layer.borderWidth = 1.0;
//    self.moreBtn.layer.borderColor = [UIColor clearColor].CGColor;
//
    
//    [_moreBtn setImage:LoadImage(@"moreBtn") forState:UIControlStateNormal];
//    [_moreBtn setBackgroundImage:LoadImage(@"moreBtn") forState:UIControlStateNormal];
    [_moreBtn setImage:[[UIImage imageNamed:@"moreBtn"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]  forState:UIControlStateNormal];
}

- (IBAction)buttonAction:(UIButton *)sender {
    if (self.MoreButtonClickedHandler)
    {
        self.MoreButtonClickedHandler(sender.tag);
    }
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
